package com.huang.service;

import com.huang.pojo.JobInfo;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author HuangShen
 * @Description
 * @create 2021-04-04 12:09
 */
@Service
public class JobInfoService {

    @Resource
    private MongoTemplate mongoTemplate;



    public void creatCollection(){
        this.mongoTemplate.createCollection(JobInfo.class);
    }

    public void insertJobInfo(JobInfo jobInfo){
        this.mongoTemplate.save(jobInfo);
    }




}
